package com.lion.ball.app.models.params.search;

import java.sql.Timestamp;
import java.sql.Timestamp;

/**
 * @author Chris Chan
 * Create on 2025-10-18 01:16
 * Use for: 订单商品 数据查询参数
 * Explain:
 * 
 */
public class OfdOrderFoodSearchParam {
    // 主键
    private long id;
    // 编码
    private long code;
    // 订单编码
    private long orderCode;
    // 食品SKU编码
    private long foodSkuCode;
    // 食品数量
    private int count;
    // 创建时间
    private long createTime;
    // 更新时间
    private long updateTime;
    // 是否删除 0 - 未删除 1 - 已删除
    private int isDeleted;

    // 无参构造方法
    public OfdOrderFoodSearchParam() {
    }

    // 全参数构造方法
    public OfdOrderFoodSearchParam(long id, long code, long orderCode, long foodSkuCode, int count, long createTime, long updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.orderCode = orderCode;
        this.foodSkuCode = foodSkuCode;
        this.count = count;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdOrderFoodSearchParam create(long id, long code, long orderCode, long foodSkuCode, int count, long createTime, long updateTime, int isDeleted) {
        return new OfdOrderFoodSearchParam(id, code, orderCode, foodSkuCode, count, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdOrderFoodSearchParam of(long id, long code, long orderCode, long foodSkuCode, int count, long createTime, long updateTime, int isDeleted) {
        return new OfdOrderFoodSearchParam(id, code, orderCode, foodSkuCode, count, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdOrderFoodSearchParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public OfdOrderFoodSearchParam setCode(long code) {
        this.code = code;
        return this;
    }

    public long getOrderCode() {
        return orderCode;
    }

    public OfdOrderFoodSearchParam setOrderCode(long orderCode) {
        this.orderCode = orderCode;
        return this;
    }

    public long getFoodSkuCode() {
        return foodSkuCode;
    }

    public OfdOrderFoodSearchParam setFoodSkuCode(long foodSkuCode) {
        this.foodSkuCode = foodSkuCode;
        return this;
    }

    public int getCount() {
        return count;
    }

    public OfdOrderFoodSearchParam setCount(int count) {
        this.count = count;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdOrderFoodSearchParam setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdOrderFoodSearchParam setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdOrderFoodSearchParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
